package com.ftm.entity;

/**
 * 管理员信息的实体类
 * 
 * @author ZZP 0507-廖伟成改-增加三个新的属性
 *
 */
public class Admin {
	/**
	 * adminid 管理员编号 adminuser 管理员帐号 adminpwd 管理员密码 adminname 管理员姓名 admindate 入职时间
	 * adminstate 在线状态
	 */
	private int adminid;
	private String adminuser;
	private String adminpwd;
	private String adminname;
	private String admindate;
	private int adminstate;

	// 无参构造
	public Admin() {
		// TODO Auto-generated constructor stub
	}

	/**
	 * id自增的带参构造
	 * 
	 * @param adminuser
	 * @param adminpwd
	 * @param adminname
	 * @param admindate
	 * @param adminstate
	 */
	public Admin(String adminuser, String adminpwd, String adminname, String admindate, int adminstate) {
		super();
		this.adminuser = adminuser;
		this.adminpwd = adminpwd;
		this.adminname = adminname;
		this.admindate = admindate;
		this.adminstate = adminstate;
	}

	/**
	 * 带参构造
	 * 
	 * @param adminid
	 * @param adminuser
	 * @param adminpwd
	 * @param adminname
	 * @param admindate
	 * @param adminstate
	 */

	public Admin(int adminid, String adminuser, String adminpwd, String adminname, String admindate, int adminstate) {
		super();
		this.adminid = adminid;
		this.adminuser = adminuser;
		this.adminpwd = adminpwd;
		this.adminname = adminname;
		this.admindate = admindate;
		this.adminstate = adminstate;
	}
	
	public Admin(String adminuser, String adminpwd, String adminname) {
		super();
		this.adminuser = adminuser;
		this.adminpwd = adminpwd;
		this.adminname = adminname;
	}

	public String getAdminname() {
		return adminname;
	}

	public void setAdminname(String adminname) {
		this.adminname = adminname;
	}

	public String getAdmindate() {
		return admindate;
	}

	public void setAdmindate(String admindate) {
		this.admindate = admindate;
	}

	public int getAdminstate() {
		return adminstate;
	}

	public void setAdminstate(int adminstate) {
		this.adminstate = adminstate;
	}

	/**
	 * @return the adminid
	 */
	public int getAdminid() {
		return adminid;
	}

	/**
	 * @param adminid the adminid to set
	 */
	public void setAdminid(int adminid) {
		this.adminid = adminid;
	}

	/**
	 * @return the adminuser
	 */
	public String getAdminuser() {
		return adminuser;
	}

	/**
	 * @param adminuser the adminuser to set
	 */
	public void setAdminuser(String adminuser) {
		this.adminuser = adminuser;
	}

	/**
	 * @return the adminpwd
	 */
	public String getAdminpwd() {
		return adminpwd;
	}

	/**
	 * @param adminpwd the adminpwd to set
	 */
	public void setAdminpwd(String adminpwd) {
		this.adminpwd = adminpwd;
	}

	@Override
	public String toString() {
		return "Admin [adminid=" + adminid + ", adminuser=" + adminuser + ", adminpwd=" + adminpwd + ", adminname="
				+ adminname + ", admindate=" + admindate + ", adminstate=" + adminstate + "]";
	}

}
